package com.hlhj.carview.adapter

import android.view.View
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.example.mymvp.log
import com.hlhj.carview.Constant
import com.hlhj.carview.R
import com.hlhj.carview.aty.MainActivity
import com.hlhj.carview.bean.AdvListBean
import com.hlhj.carview.bean.MainPagerDataBean
import com.hlhj.carview.customView.AdvPlayer
import com.hlhj.carview.http.Urls
import com.hlhj.carview.utils.GlideUtil
import com.makeramen.roundedimageview.RoundedImageView
import com.shuyu.gsyvideoplayer.GSYVideoManager
import com.shuyu.gsyvideoplayer.utils.GSYVideoHelper

/**
 * Created by Never Fear   on 2018\12\24 0024.
 *
 *Never More....
 */
class AdvPagerListAdp(private val datas:ArrayList<MainPagerDataBean>)
    :BaseQuickAdapter<MainPagerDataBean,BaseViewHolder>(R.layout.pager_item,datas) {

    override fun convert(helper: BaseViewHolder?, item: MainPagerDataBean?) {
        helper?.itemView?.rotation=180f
        Glide.with(mContext).load(item?.img).apply(GlideUtil.loadAdOption()).into(helper?.getView<RoundedImageView>(R.id.itemImg))
        helper?.setText(R.id.itemName,"${item?.name}委托")

    }

}